﻿using ProjectManageSystemApi.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace ProjectManageSystemApi.Services
{
    public interface ICostTypeServices
    {
        bool Create(CostTypeDto costType, long userId);
        bool Update(CostTypeDto costType);
        bool Delete(int id);
        bool HasExistId(int id);
        bool HasExistName(string name, int id = 0);
        PageVo<List<CostTypeDto>> GetAll(PageBo<CostTypeParams> pageBo);
    }
}
